package com.atguigu.gulimall.authserver.feign;

import com.atguigu.common.utils.R;
import com.atguigu.common.vo.MemberEntityVo;
import com.atguigu.gulimall.authserver.vo.UserLoginVo;
import com.atguigu.gulimall.authserver.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-member")
public interface memberFeignService {
    @RequestMapping("/member/member/regUser")
    public R regUser(@RequestBody UserRegisterVo userRegisterVo);

    @PostMapping("/member/member/login")
    R dealLogin(@RequestBody UserLoginVo userLoginVo);

    @PostMapping("/member/member/socialLogin")
    R dealSocialLogin(@RequestBody MemberEntityVo memberEntity);
}
